define(['jquery'], ($) => {
  $.qsToObj = qs => {
    const obj = {}
    qs.split('&').forEach(item => {
      const parts = item.split('=')
      obj[parts[0]] = parts[1]
    })
    return obj
  }
})